import { createRouter, createWebHistory } from 'vue-router'
import HomeView from '../views/index.vue'
import Catagory from '../views/catagory.vue'
import Good_detail from '../views/good_detail.vue'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      name: 'index',
      component: HomeView
    },
    {
      path: '/catagory',
      name: 'catagory',
      component: Catagory
    },
    {
      path: '/good_detail',
      name: 'good_detail',
      component: Good_detail
    },

  ]
})

export default router
